How do you make a 2D character in Javascript? [on hold]
Posted
by
user36507
on Game Development
See other posts from Game Development
or by user36507
Published on 2013-10-29T12:26:58Z
Indexed on
2013/10/29
16:14 UTC
Read the original article
Hit count: 100
JavaScript
How do you actually make a character in JS? I know you are supposed to use objects like
var character = new Object();
(If the code has errors I apologise.)But how do you make the character move using keys WASD or let the character pick up items.
What I want to know is that whether you need a canvas created specially for the character, how to add attributes and use keys to move it all in code.
Also it would be great if you could help me on how to import pictures to JS to use it.
© Game Development or respective owner